public class Student {
    int number;
    public String name;
    public String gender;
    public String Class;

    public Student(int a, String b, String c, String d)
    {
        number = a;
        name = b;
        gender = c;
        Class = d;
    }

    public String toString()
    {
    return "编号："+ number+ "\n姓名:"+ name+ "\n性别："+ gender+ "\n所选课程："+ Class;
    }
}

